home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Imagine the Universe (9th Edition)
/
Imagine the Universe 9 - Disc 1.iso
/
pc
/
imagine
/
YBA
/
HTCas-size
/
javascript
/
time.js
< prev
Wrap
Text File
|
2003-01-12
|
483b
|
25 lines
size = "Blank";
function checkme() {
size = document.time.answer.value - 0;
if (!size) {size = "Blank";}
RightOnFile = './time-correct.html';
TryAgainFile = './time-close.html';
WayWrongFile = './time-wrong.html';
low_wrong = 912;
hi_wrong = 914;
good = 913;
if ((size != "Blank") && (size == good)) {
location = RightOnFile;
}
else if ((size == "Blank") || ((size < low_wrong) || (size > hi_wrong))) {
location = WayWrongFile;
}
else {
location = TryAgainFile;
}
}